package ch5;

import java.io.*;

public class InputTest {

	public static void main(String[] args) throws IOException {
		// input
		InputStream fin = new FileInputStream("E:/java61/java61.txt");
		// int c = fin.read();
		// System.out.println(c);
		// int c2 = fin.read();
		// System.out.println(c2);
		System.out.println(fin.available() + "个字节");
		int c = -1;
		while ((c = fin.read()) > -1) {
			System.out.print(c + ":" + (char) c + "  ");
		}
		fin.close();
	}

}
